﻿using System;
using OpenLS.Spreadsheet.Formats.Biff.Tokens;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class CFParsedFormula : ParsedFormulaBase

    {
        public void Read(FormulaReadContext formulaReadContext)
        {
            ushort cce = formulaReadContext.ReadUInt16();
            base.Read(formulaReadContext, cce);
        }

        protected override Cell GetReferenceCell(Cell cell)
        {
            throw new NotImplementedException();
        }

        public void Write(FormulaWriteContext formulaWriteContext)
        {
            ushort u = TotalTokenByteLength(formulaWriteContext.Type);
            formulaWriteContext.Writer.Write(u);
            WriteNamed(formulaWriteContext);
        }
    }
}